package com.woniuxy;

import com.woniuxy.service.ManangerService;

public class UsedService {
//    实际上通过自动注入的对象 是ManangerServiceImpl类
    ManangerService manangerService;//这个是个接口  回忆多态 向上转型

    public String findOne(int id){
        String one = manangerService.findOne(id);
        return one;
    }
    public UsedService(ManangerService manangerService) {
        this.manangerService = manangerService;
    }

    public UsedService() {
    }

    @Override
    public String toString() {
        return "UsedService{" +
                "manangerService=" + manangerService +
                '}';
    }

    public ManangerService getManangerService() {
        return manangerService;
    }

    public void setManangerService(ManangerService manangerService) {
        this.manangerService = manangerService;
    }
}
